/*
 * Copyright (c)  2018, XiQiao
 * All rights reserved. 
 *
 * Id:Person.java   2018-07-26 23:42 wanglijun
 */
package io.marmot.poi;

import io.marmot.poi.annotation.Excel;
import io.marmot.poi.annotation.ExcelField;
import io.marmot.poi.validator.MobileValidator;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * <p>
 * Title:
 * </p>
 * <p>
 * Description:
 * </p>
 * <p>
 * Copyright: Copyright (c) 2018
 * </p>
 * <p>
 * Company: XiQiao
 * </p>
 *
 * @author: wanglijun
 * @create: 2018-07-26 23:42
 * @version：1.0
 */


@AllArgsConstructor
@NoArgsConstructor
@Builder
@Data
@Excel(value = "个人信息",title = "个人信息列表")
public class Person {

    @ExcelField(value = "姓名", required = true,order=1)
    private  String name;

    @ExcelField(value = "手机号", validator = MobileValidator.class,order=2)
    private String phoneNo;

    @ExcelField(value = "性别",options =GenderOptions.class,writeConverterExp = "0=未知,1=男,2=女",readConverterExp = "未知=0,男=1,女=2",order=3)
    private  Integer gender;

    @ExcelField(value = "备注",order=4)
    private  String  remark;

    @ExcelField(value = "创建时间", dateFormat = "yyyy/MM/dd",order=5)
    private Date createDate;

}
